﻿<link href="<{$config.weburl}>/templates/default/css/buying.css?t=<{$now_time}>" rel="stylesheet" media="screen"
      type="text/css"/>
<link href="<{$config.weburl}>/templates/default/css/gynei.css?t=<{$now_time}>" rel="stylesheet" media="screen"
      type="text/css"/>
<script type="text/javascript" src="<{$config.weburl}>/templates/default/js/nei.js?t=<{$now_time}>"></script>
<div id="seat"></div>
<!-- 中间内容 -->
<div class="g-bd" style="background-position: 50% 50px;">
    <div class="g-bdc">
        <div class="g-mn">
            <!-- 演出上 begin -->
            <div class="m-box-colyc m-box-goods" id="projectInfo">
                <div class="hdy">
                    <!-- 位置 begin -->
                    <p class="m-crm">
                        <a class="grown1" href="<{$config.weburl}>">首页</a>
                        <span class="arrow1">&gt;</span>
                        <a class="grown1" href="<{$config.weburl}>/?m=product&s=list&id=<{$de.catid}>"><{$de.catid|get_product_cat_name}></a>
                    </p>
                    <!-- 位置 end -->
                    <div class="ops"></div>
                </div>
                <div class="clean_float"></div>
                <div class="mnyc">
                    <!-- 项目海报 begin -->
                    <div class="m-poster">
                        <!-- 项目图 begin -->
                        <div class="m-picbox">
                            <s style="display: block;width: 38px; height: 56px;position: absolute; right: -2px;top: 0;"></s>
                            <{if $de.discount > 0}>
                            <s style="display: block;position: absolute;right: 0;width: 37px;height: 60px;z-index: 2;background: url(<{$config.weburl}>/templates/default/images/zhekou.png) no-repeat;color: #ffffff;font-size: 16px;text-align: center;"><{$de.discount}>折</s>
                            <{/if}>
                            <img src="<{$de.pic}>" title="<{$de.ftitle}>">

                            <div class="collect">
                                <span class="btn btn-normal"><span class="ico"></span><span class="txt" data-id="<{$de.id}>" data-user="<{$is_login_statu}>" id="collect">收藏</span></span>
                                <!--<span class="btn btn-active"><span class="ico"></span><span class="txt">已收藏<a href="<{$config.weburl}>main.php?m=sns&s=admin_share_product" target="_blank">查看</a></span></span>-->
                            </div>
                        </div>
                        <!-- 项目图 end -->
                        <!-- 分享 begin -->
                        <div class="bdsharebuttonbox" style="width:276px">
                            <a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone"
                                                                                data-cmd="qzone" title="分享到QQ空间"></a>
                            <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
                            <a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
                            <a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>
                            <a href="#" class="bds_tsohu" data-cmd="tsohu" title="分享到搜狐微博"></a>
                            <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
                            <a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a>
                            <a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a>
                        </div>
                        <script>window._bd_share_config = {
                            "common": {
                                "bdSnsKey": {},
                                "bdText": "",
                                "bdMini": "2",
                                "bdMiniList": false,
                                "bdPic": "",
                                "bdStyle": "1",
                                "bdSize": "24"
                            }, "share": {}
                        };
                        with (document)
                            0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>
                        <!-- 分享 end -->
                    </div>
                    <!-- 项目海报 end -->
                    <!-- 项目模块 begin -->
                    <div class="m-goods">
                        <h2 class="tt">
                            <span class="txt"><{$de.pname}></span>
                            <{if !empty($is_flower)}>
                            <a href="javascript:;" class="m-flowers m-flowers-act">
                                <span class="ico ico-2"></span>
                                <span class="txt txt-flower" style=" font-size: 12px; font-weight: normal;">已送花</span>
                                <span class="num num-flower">1</span>
                            </a>
                            <{else}>
                            <a href="javascript:;" class="m-flowers" id="send_flowers" data-user="<{$is_login_statu}>">
                                <span class="ico ico-1"></span>
                                <span class="txt txt-flower" style=" font-size: 12px; font-weight: normal;">送花</span>
                                <span class="num num-flower">0</span>
                            </a>


                            <{/if}>

                        </h2>

                        <h3 class="stt" style="font-size: 14px;">
                            <!--<span class="quotl"></span>-->
                            <span class="txt"><{$de.ftitle}></span>
                            <!--<span class="quotr"></span>-->
                        </h3>

                        <!-- 时间轴 begin -->
                        <div class="m-timeline m-timeline-3" style="margin: 5px 0px;" id="projectAxis">
                            <div class="wrap">
                                <div class="box">
                                    <div class="bar">
                                        <div class="line" style="width:290px"></div>
                                    </div>
                                    <div class="itm itm-4 <{if $now_time < $de.reserve_time}> itm-crt <{/if}>" style="width:145px"><h3 class="txt">项目待定</h3>

                                        <div class="ico"></div>
                                        <p class="date"></p></div>
                                    <div class="itm itm-4 <{if ($now_time >= $de.reserve_time and $now_time <= $de.sell_time) || empty($de.sell_time)}> itm-crt <{/if}>"
                                         style="width:145px"><h3 class="txt">预售/预订</h3>

                                        <div class="ico"></div>
                                        <p class="date"></p></div>
                                    <div class="itm itm-4 <{if !empty($de.sell_time) && $now_time >= $de.sell_time and $now_time <= $de.performance_end_time}> itm-crt <{/if}> "
                                         style="width:145px"><h3 class="txt">售票中</h3>

                                        <div class="ico"></div>
                                        <p class="date"></p></div>
                                    <div class="itm itm-4 <{if $now_time >= $de.performance_start_time }> itm-crt <{/if}> "
                                         style="width:145px"><h3 class="txt">演出开始</h3>

                                        <div class="ico"></div>
                                        <p class="date"></p></div>
                                </div>
                            </div>
                        </div>
                        <!-- 时间轴 end -->
                        <{if !empty($de.promotion_list)}>
                        <div class="m-goodstips m-goodstips-2" id="projectStatusDescn"  >
                            <div class="hd"><i class="ico"></i></div>
                            <div class="bd">
                                <div class="tips">
                                    <div class="box"><{foreach item=vo from=$de.promotion_list}><{$vo}><br/><{/foreach}></div>
                                    <div class="ops"><span class="btnsel"></span></div>
                                </div>
                            </div>
                        </div>
                        <{/if}>

                        <div class="modue_mill" <{if $now_time >=$de.seckill_time || $de.is_skill != 1  }> style="display: none;" <{/if}> >
                            <div class="mill_name">倒计时</div>
                            <div class="mill_time exe_time"  endtime='<{$de.seckill_time}>' lxfday='yes'> </div>
                            <div class="clean_float"></div>
                        </div>


                        <!-- 产品模块 begin -->
                        <div class="m-product m-product-2 -m-product-1 j_goodsDetails">
                            <!-- 选择日期模块 begin -->
                            <div class="m-choose m-choose-date">
                                <h3 class="tt">演出场馆：</h3>

                                <div class="ct">
                                    <ul class="lst ">
                                        <li><{$de.spot|get_spot_name}></li>
                                    </ul>
                                </div>
                            </div>

                            <div class="m-choose choose_seckill" id="g1" data-col="4">
                                <h3 class="tt">演出时间：</h3>

                                <div class="ct">
                                    <ul class="lst">
                                        <{foreach item=vo from=$pers_date key=key}>
                                        <li class="itm" data-item-id="<{$key}>" data-title='<{$vo}>'><a
                                                href="javascript:;"><{$vo}><i></i></a></li>
                                        <{/foreach}>

                                    </ul>

                                </div>
                            </div>

                            <div class="m-choose choose_seckill " id="g2" data-col="4">
                                <h3 class="tt">选择票价：</h3>

                                <div class="ct">
                                    <ul class="lst ">
                                        <{foreach item=vo from=$price}>

                                        <li class="<{if $vo.stock <= 0}>itm-price itm-oos <{else}> itm <{/if}>" data-item-id="<{$vo.price}>"
                                            data-title="<{if !empty($vo.price_desc)}><{$vo.price_desc}> <{else}> <{$vo.price}> <{/if}>">
                                            <a href="javascript:;"><{if !empty($vo.price_desc)}><{$vo.price_desc}>
                                                <{else}> <{$vo.price}> <{/if}> <i></i></a></li>
                                        <{/foreach}>
                                    </ul>
                                    <!--z-show-->
                                    <div class="tips tips-oos " style="left: 90px; top: 40px;"><span class="ico"></span><span class="txt">暂时无货，登录试试运气~</span></div>
                                </div>
                            </div>


                            <div class="m-cart  " id="cartList">
                                <h3 class="tt" style="display:none;">您选择了：</h3>

                                <div class="ct" style="display:none;">
                                    <{if $now_time < $de.reserve_time}>
                                    <form action="<{$config.weburl}>/?m=product&s=shop_reserve" method="post" id="order_reserve">  <!--预定 -->
                                        <{elseif ($now_time >= $de.reserve_time and $now_time <= $de.sell_time) || empty($de.sell_time)}>
                                        <form action="<{$config.weburl}>/?m=product&s=shop_order" method="post" id="order_reserve">  <!--预定 -->
                                            <{elseif $now_time >= $de.sell_time and $now_time <= $de.performance_end_time}>
                                            <form action="<{$config.weburl}>/?m=product&s=shop_order" method="post" id="my_order_post"> <!--购买 -->
                                                <{elseif $now_time >= $de.performance_end_time }>
                                                <form action="" method="post"><!--结束 -->
                                                    <{/if}>
                                                    <input type="hidden" name="pid" id="pid" value="<{$de.pid}>"/>
                                                    <input type="hidden" name="spot" value="<{$de.spot}>"/>
                                                    <input type="hidden" name="is_real_id" value="<{$de.is_real_name}>"/>
                                                    <ul class="lst select_ticket">

                                                    </ul>

                                                </form>
                                </div>

                                <div class="ops">
                                    <{if $now_time < $de.reserve_time }>
                                    <a href="javascript:;" class="u-btn u-btn-c1 u-btn-choose" id="btnReserve">待定登记</a>
                                    <{elseif ($now_time >= $de.reserve_time and $now_time <= $de.sell_time) || empty($de.sell_time)}>
                                    <a href="javascript:;" class="u-btn u-btn-c1 u-btn-choose seckill_buy " id="btnReserve">立即预定</a>
                                    <{elseif $now_time >= $de.sell_time and $now_time <= $de.performance_end_time}>
                                    <{if $de.is_seat == 1}>
                                    <a href="javascript:;" class="u-btn u-btn-c1 u-btn-choose choose-seat" data-seat="<{$de.spot_detail.pid}>" product-id="<{$de.id}>">选座购票</a>
                                    <{else}>
                                    <a href="javascript:;" class="u-btn u-btn-c1 u-btn-choose seckill_buy" id="btnBuyNow">立即购买</a>
                                    <{/if}>
                                    <{elseif $now_time >= $de.performance_end_time }>
                                    <a class="u-btn u-btn-c11 u-btn-choose" id="btnEnd">演出结束</a>
                                    <{/if}>
                                    <a href="" class="u-btn u-btn-c1 u-btn-choose" style="display: none;"
                                       id="out_stock">缺货登记</a>
                                    <!--<a class="u-btn u-btn-c1 u-btn-choose"-->
                                    <!--style="background-color:#fa6a07; cursor: pointer;" data-id="<{$de.id}>" data-user="<{$is_login_statu}>" id="collect" >收藏</a>-->
                                </div>

                                <!--<div class="ops">-->
                                <!--<a class="u-btn u-btn-c11 u-btn-choose">演出结束</a>-->
                                <!--</div>-->

                            </div>
                            <!-- 选择日期模块 end -->

                            <div class="m-qrcode"><!-- 大麦网客户端二维码 -->
                                <h3 class="tt"><span id="ErWeiMaTips">手机扫一扫<br>下单更快捷</span></h3>
                                <!--<{$config.weburl}>/uploadfile/qrcode/<{$de.id}>.png     width="109" height="108"  -->
                                <p class="ct"><img alt="" src="<{$config.weburl}>/templates/default/images/wx_ss.jpg" style="display: block;"></p>
                            </div>

                            <div class="m_heighlight_tip"></div>

                        </div>
                        <!-- 产品模块 end -->

                    </div>
                    <!-- 项目模块 end -->

                    <div class="sd">
                        <div class="m-agent">
                            <div class="tt">
                                <a href="javascript:void(0);" target="_blank"><img alt="票务总代" src="<{$config.weburl}>/templates/default/images/m-agent-logo.png" style="display: block;"></a>
                            </div>
                            <div class="ct">
                                <a href="javascript:void(0);" class="itm"
                                   target="_blank">本项目由主办单位授权票务代理</a>
                                <a href="javascript:void(0);" class="itm" target="_blank"> 海峡票务网为官方指定售票平台</a>
                            </div>
                        </div>
                        <{if $de.is_real_name == 1}>
                        <!--实名认证-->
                        <div class="m-certification-box">
                            <a href="javascript:;" id="m-certification-a" class="m-certification">此项目需要身份证实名购票</a>

                            <div id="m-certification-b" class="m-certification-tt" style="display: none;">
                                <span class="arrow_top"></span>

                                <p>本场演出实名制购票，一单一证，请您务必填写真实准确的证件信息，否则将影响您正常观演。</p>
                            </div>
                        </div>
                        <script type="application/javascript">
                            $("#m-certification-a").hover(function () {
                                $("#m-certification-b").show();
                            }, function () {
                                $("#m-certification-b").hide();
                            });
                        </script>
                        <{/if}>


                        <!-- 演出场馆 begin -->
                        <div class="m-sdbox m-venue">
                            <h2 class="tt">场馆地址</h2>

                            <div class="ct">
                                <p class="txt"><a href="<{$config.weburl}>/?m=spot&s=detail&id=<{$de.spot_detail.id}>" target="_blank"><{$de.spot_detail.address}></a></p>
                                <a href="<{$config.weburl}>/?m=spot&s=detail&id=<{$de.spot_detail.id}>"
                                   class="u-btn u-btn-traffic"><i></i>交通路线</a>
                                <{if !empty($de.spot_detail.seat_pic)}>
                                <a href="javascript:;" class="u-btn u-btn-seatmap" id="btnSeatPic"><i></i>查看座位图</a>
                                <{/if}>
                            </div>
                        </div>
                        <!-- 演出场馆 end -->

                        <div class="m-sdbox m-showtime">

                            <h2 class="tt">演出时间</h2>

                            <div class="ct">
                                <span class="txt"><{$de.performance_start_time|date_format:"%Y.%m.%d"}></span>
                                <a href="javascript:;" class="u-btn u-btn-cal"><i>日历</i></a>
                            </div>
                            <div id="show_full_calendar" style="display: none;">

                            </div>

                        </div>


                        <!-- 票品支持 begin -->
                        <div class="m-sdbox m-support">
                            <h2 class="tt">票品支持</h2>

                            <div class="ct">
                                <ul class="m-mantab">
                                    <{if $de.is_seat == 1}>
                                    <li class="itm"><a href="javascript:;" class="u-btn u-btn-choose"><i></i>选座</a></li>
                                    <{/if}>
                                    <{if $de.is_special_ticket == 1}>
                                    <li class="itm"><a href="javascript:;" class="u-btn u-btn-super"><i></i>超级票</a></li>
                                    <{/if}>
                                    <{if $de.is_electronic_ticket == 1}>
                                    <li class="itm"><a href="javascript:;" class="u-btn u-btn-wallet"><i></i>电子票</a>
                                    </li>
                                    <{/if}>
                                    <{if $de.point > 0}>
                                    <li class="itm"><a href="javascript:;" class="u-btn u-btn-credit"><i></i>返积分</a>
                                    </li>
                                    <{/if}>
                                    <{if $de.is_door_self == 1}>
                                    <li class="itm"><a href="javascript:;" class="u-btn u-btn-selftake"><i></i>上门自取</a>
                                    </li>
                                    <{/if}>
                                    <li class="itm"><a href="javascript:;" class="u-btn u-btn-express"><i></i>快递</a>
                                    </li>
                                </ul>
                                <p>由于商品特殊性，不支持7天无理由退换</p>
                            </div>
                        </div>
                        <!-- 票品支持 end -->

                        <!-- 实票配送 begin -->
                        <div class="m-sdbox m-entity" id="freight">
                            <h2 class="tt"> 实票配送</h2>

                            <div class="ct">
                                <div class="u-sel u-sel-c1 u-sel-entity">
                                    <div class="hd">
                                        <span class="txt"><{$de.city|getdistrictname}></span>
                                        <span class="ico"></span>
                                    </div>
                                    <div class="menu">
                                        <ul class="lst">
                                            <li class="itm first">港，澳，台 92元，发货后1-5天到达</li>
                                            <li class="itm ">省内 13元，发货后1-3天到达</li>
                                            <li class="itm ">省外 22元，发货后1-3天到达</li>
                                        </ul>
                                    </div>
                                </div>
                                <p class="tips">同城邮费12元，发货后1-3天到达</p>
                            </div>
                        </div>
                        <!-- 实票配送 end -->
                    </div>
                    <div class="clean_float"></div>
                </div>

            </div>
            <!-- 演出上 end -->
            <div class="clean_float"></div>
            <!-- 演出下 begin -->
            <div class="m-box m-box-col2">
                <div class="mnmn">
                    <!-- 项目详情 begin -->
                    <div class="m-detail">
                        <!-- 项目详情选项卡 begin -->
                        <div class="m-infonav" id="m-infonav">
                            <div class="hd">
                                <div class="navnav">
                                    <ul class="tab">
                                        <li><a data-href="#m-infonav" href="javascript:;"
                                               class="itm itm-tab first z-crt" id="tabProjectDescn" data-show="1,2"
                                               data-idx="0"><i></i><span class="txt">演出信息</span></a></li>
                                        <li><a data-href="#m-infonav" href="javascript:;" class="itm itm-tab"
                                               data-idx="2"><i></i><span class="txt">在线答疑</span></a></li>
                                        <li><a data-href="#m-infonav" href="javascript:;" class="itm itm-tab"
                                               data-idx="3"><i></i><span class="txt">购买说明</span></a></li>
                                        <li><a data-href="#m-infonav" href="javascript:;" class="itm itm-tab"
                                               data-idx="4"><i></i><span class="txt">付款方式</span></a></li>
                                        <li><a data-href="#m-infonav" href="javascript:;" class="itm itm-tab"
                                               data-idx="5"><i></i><span class="txt">温馨提示</span></a></li>
                                    </ul>

                                    <div class="buy" id="buyButtonC">
                                        <{if ($now_time >= $de.reserve_time and $now_time <= $de.sell_time) || empty($de.sell_time)}>
                                        <a href="javascript:scroll(0,0)" class="u-btn u-btn-cart " id="btnBuyNow2"><i
                                                class="ico"></i><span class="txt">立即预定</span></a>
                                        <{elseif $now_time >= $de.sell_time and $now_time <= $de.performance_end_time}>
                                        <a href="javascript:scroll(0,0)" class="u-btn u-btn-cart " id="btnBuyNow2"><i
                                                class="ico"></i><span class="txt">立即购买</span></a>
                                        <{elseif $now_time >= $de.performance_end_time }>
                                        <a href="javascript:scroll(0,0)" class="u-btn u-btn-cart  u-btn-c11"
                                           id="btnBuyNow2"><i class="ico"></i><span class="txt">演出结束</span></a>
                                        <{/if}>
                                    </div>
                                </div>
                            </div>
                            <div class="bd">
                                <div class="itm-tab z-show" rel="0">
                                    <!-- 演出信息 begin -->
                                    <div class="m-infobase m-liveinfo">
                                        <{$de.detail}>
                                    </div>
                                    <!-- 演出信息 end -->


                                </div>
                                <div class="itm-tab z-show" rel="2">

                                    <div class="m-faq">
                                        <div class="hd">
                                            <h2 class="tt">在线答疑</h2>
                                            <ul class="m-asknav" qa="menu">
                                                <li class="itm first z-crt"><a class="txt" href="javascript:void(0);" qa="allQA">全部提问</a></li>
                                                <li class="itm"><a class="txt" href="<{$config.weburl}>/main.php?m=product&s=admin_question" qa="myQA">我的提问</a></li>
                                            </ul>
                                        </div>
                                        <div class="bd">
                                            <!-- 问题分类 begin -->

                                            <!-- 问题分类 end -->

                                            <!-- 问题编辑器 begin -->
                                            <div class="m-askeditor">
                                                <a href="javascript:;" class="avatar">
                                                    <img onerror="this.src='<{$config.weburl}>/templates/default/images/user.png'" my="head" src="<{$config.weburl}>/templates/default/images/user.png">
                                                    <span class="name" my="nickname"></span>
                                                </a>

                                                <div class="editor"><textarea id="question_quetsion" class="placeholder" rows="1" placeholder="请在此留下您的问题，最多只能输入100字"></textarea></div>
                                                <a href="javascript:void(0);" class="u-btn u-btn-c1 u-btn-submit" qa="SendQA" id="submit_quetsion">提交问题</a>
                                                <a href="http://wpa.qq.com/msgrd?v=3&uin=2723715100&site=qq&menu=yes"> <span class="u-btn u-btn-submit u-btn-service xiaonengService">在线客服</span> </a>
                                            </div>
                                            <!-- 问题编辑器 end -->

                                            <script type="application/javascript">
                                                $("#submit_quetsion").on("click", function () {
                                                    var content = $("#question_quetsion").val();
                                                    var pid = "<{$de.pid}>";
                                                    var buid = "<{$buid}>";
                                                    if (content == '') {
                                                        alert("请填写内容");
                                                        return false;
                                                    } else if (buid == '') {
                                                        window.location.href = "<{$config.weburl}>/login.php";
                                                    } else {
                                                        $.post("<{$config.weburl}>/ajax.php", {action: 'submit_quetsion', content: content, pid: pid, buid: buid}, function (ret) {
                                                            ret = eval('(' + ret + ')');
                                                            if (ret.status) {
                                                                window.location.href = ret.url;
                                                            } else {
                                                                alert(ret.msg);
                                                                if (ret.url != undefined) {
                                                                    window.location.href = ret.url;
                                                                }
                                                            }

                                                        });
                                                    }
                                                });
                                            </script>

                                            <!-- 温馨提示 begin -->
                                            <div class="m-asktips">
                                                <i class="ico ico-tips"></i><span class="txt">温馨提示：为了您的个人信息安全，请勿在留言中透露联系方式。对于一些常规的流程和问题您也可以通过<a href="<{$config.weburl}>/help.php"
                                                                                                                                                target="_blank">帮助中心</a>寻找答案</span>
                                            </div>
                                            <!-- 温馨提示 end -->
                                            <{if !empty($question_list) }>
                                            <!-- 问题列表 begin -->
                                            <div class="m-asklst">
                                                <ul class="lst" qa="list">
                                                    <{foreach item=list from=$question_list}>
                                                    <li class="itm">
                                                        <div class="bar ask">
                                                            <i class="ico ico-ask">Q</i>

                                                            <div class="user"><{$list.member_name}> 提问：</div>
                                                            <p class="txt"><{$list.question}></p>

                                                            <div class="info"><span class="datetime"><{$list.question_time|date_format:"%Y-%m-%d %H:%M:%S"}></span></div>
                                                        </div>
                                                        <{if !empty($list.answer)}>
                                                        <div class="reply clearfix">
                                                            <i class="ico ico-arrow-up"></i><i class="ico ico-reply">A</i>

                                                            <p class="txt"> <{$list.answer}></p>
                                                        </div>
                                                        <{/if}>
                                                    </li>
                                                    <{/foreach}>
                                                </ul>
                                                <div class="ops"></div>
                                            </div>
                                            <!-- 问题列表 end -->
                                            <{/if}>
                                        </div>
                                        <div class="ft"></div>
                                    </div>

                                </div>

                                <div class="itm-tab" rel="3">
                                    <!-- 购票说明 begin -->
                                    <div class="m-infobase m-buydesc">
                                        <{$buy_info.con_desc}>
                                    </div>
                                    <!-- 购票说明 end -->
                                </div>

                                <div class="itm-tab" rel="4">
                                    <!-- 付款方式 begin -->
                                    <div class="m-infobase m-paymode" style="display: block;">
                                        <{$fk_info.con_desc}>
                                    </div>
                                    <!-- 付款方式 end -->
                                </div>

                                <div class="itm-tab" rel="5">

                                    <div class="show_lm_con">
                                        <{$wx_info.con_desc}>
                                    </div>
                                </div>

                            </div>
                        </div>
                        <!-- 项目详情选项卡 end -->
                    </div>
                    <!-- 项目详情 end -->
                </div>

                <div class="sd">
                    <!-- 热门推荐 begin -->
                    <div class="m-sdbox2-first m-sdbox2 m-hot" id="hotProjects">
                        <div class="hd"><h2 class="tt">相关票品</h2></div>
                        <div class="bd">
                            <ul class="m-sdlst" id="gexhTuijian">


                                <{foreach item=vo key=key from=$about_product}>
                                <li class="itm <{if $key ==0 }>z-crt<{/if}>">
                                    <div class="hot">
                                        <a href="<{$config.weburl}>/?m=product&s=detail&id=<{$vo.id}>" class="thumb"
                                           target="_blank">
                                            <img src="<{$vo.pic}>" alt="" height="300"></a>

                                        <h3 class="tt"><a href="<{$config.weburl}>/?m=product&s=detail&id=<{$vo.id}>"
                                                          target="_blank"><{$vo.pname}></a></h3></div>
                                    <div class="info">
                                        <div class="row"><a href="<{$config.weburl}>/?m=product&s=detail&id=<{$vo.id}>"
                                                            target="_blank"><{$vo.pname}></a></div>
                                        <div class="row"><span class="datetime"><{$vo.uptime|date_format:"%Y-%m-%d H:m:s"}></span>
                                        </div>
                                    </div>
                                </li>
                                <{/foreach}>

                            </ul>
                        </div>
                    </div>
                    <!-- 热门推荐 end-->

                    <!-- 微博 begin -->
                    <div class="m-sdbox2  m-weibo">
                        <div class="hd">
                            <h2 class="tt">海峡微博</h2>
                        </div>
                        <div class="bd">
                            <div class="player" id="weibo_con">
                                <iframe width="100%" height="550px" class="share_self" frameborder="0" scrolling="no"
                                        src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=550&fansRow=2&ptype=1&speed=0&skin=1&isTitle=1&noborder=0&isWeibo=1&isFans=1&uid=5098928249&verifier=407e98e8&dpc=1"></iframe>
                            </div>
                        </div>
                    </div>
                    <!-- 微博 end -->

                </div>

            </div>
            <!-- 演出下 end -->
        </div>
    </div>
</div>


<div class="m-layer m-layer-viewseat z-show" id="layerSeatPic"
     style="z-index: 1000000002; display: none; width: 740px; height: 338px; margin-left: -370px; margin-top: -169px; background: url("<{$config.weburl}>/templates/default/images/loading.gif") center center no-repeat rgb(255, 255, 255);">
<div class="hd">
    <h2 class="tt">查看座位图</h2>
    <a href="javascript:;" class="u-btn u-btn-close"><span class="ico" id="seat_pic_close"></span></a>
</div>
<div class="bd">
    <!-- 查看座位图模块 begin -->
    <div class="m-viewseat">
        <div class="seat"><img alt="" style="width: 100%; height: 100%;" src="<{$de.spot_detail.seat_pic}>"></div>
    </div>
    <!-- 查看座位图模块 end -->
</div>
</div>

<link rel='stylesheet' href='<{$config.weburl}>/script/fullcalendar/lib/cupertino/jquery-ui.min.css'/>
<link href="<{$config.weburl}>/script/fullcalendar/fullcalendar.min.css" rel='stylesheet'/>
<link href="<{$config.weburl}>/script/fullcalendar/fullcalendar.print.min.css" rel='stylesheet' media='print'/>
<script src="<{$config.weburl}>/script/fullcalendar/lib/moment.min.js"></script>
<script src="<{$config.weburl}>/script/fullcalendar/fullcalendar.min.js"></script>
<script src="<{$config.weburl}>/script/fullcalendar/fullcalendar.min.js"></script>
<script src="<{$config.weburl}>/script/fullcalendar/locale/zh-cn.js"></script>

<script type="text/javascript">
    $(".u-btn-cal").on("click", function () {
        $("#show_full_calendar").show();
        $('#show_full_calendar').fullCalendar({
                    defaultDate: "<{$de.performance_start_time|date_format:" % Y - % m - % d"}>",
                    theme: true,
                    navLinks: true,
                    businessHours: true,
                    handleWindowResize: true,
                    editable: true,
                    eventLimit: true,
                    events: [
                    < {foreach item = vo from = $calendar
                } >
                {

                    start: "<{$vo|date_format:'%Y-%m-%d %H:%M:%S'}>",
                    backgroundColor: '#cc3b00',
                    borderColor: '#cc3b00'
                },
        < { / foreach
    }>

        ]
    })
        ;

    });

</script>


<script type="text/javascript">
    $(document).ready(function () {
        //座位图显示
        $("#btnSeatPic").on("click", function () {
            $("#layerSeatPic").show(5);
        });
        //座位图关闭
        $("#seat_pic_close").on("click", function () {
            $("#layerSeatPic").hide(5);
        });

        var data_title = '';

        // $(".m-goods #g1").find("ul li:first-child").addClass("itm-sel");


        $(".m-goods  #g1 .itm").each(function () {
            var detail_per_date = "<{$de.performance_start_time}>";
            data_title = $(this).attr('data-item-id');
            <{if $de.is_skill != 1 || $now_time >=$de.seckill_time }>
            if (detail_per_date == data_title) {
                $(this).addClass("itm-sel");
            }
            <{/if}>
        });

        $(".m-goods  #g1 .itm").on('click', function () {

            $(".m-goods #g1 .itm").each(function () {
                if ($(this).hasClass("itm-sel")) {
                    $(this).removeClass("itm-sel");

                }
            });
            if(!$(this).hasClass("itm-oos")){

                $(".m-goods #g2 .itm").each(function () {
                    if ($(this).hasClass("itm-sel")) {
                        $(this).removeClass("itm-sel");

                    }
                });

                $(this).addClass("itm-sel");

                $(".m-goods #g1 .itm").each(function () {
                    if ($(this).hasClass("itm-sel")) {
                        item_time_id = $(this).attr('data-item-id');
                    }
                });
                var pid = $("#pid").val();

                $.post("<{$config.weburl}>/ajax_back_end.php", {
                    action: 'select_produt',
                    pid: pid,
                    item_id: item_time_id
                }, function (ret) {
                    ret = eval('(' + ret + ')');
                    if (ret.status) {
                        window.location.href = "<{$config.weburl}>/" + "/?m=product&s=detail&id=" + ret.product_id
                    } else {
                        alert(ret.msg);
                    }
                });


            }

        });

        var is_select_time = false;
        var item_time_id = '';
        var item_price_id = '';
        var item_time_title = '';
        var item_price_title = '';
        var pid = $("#pid").val();

        $(".m-goods  #g2 .itm").on('click', function () {

            $(".m-goods #g1 .itm").each(function () {
                if ($(this).hasClass("itm-sel")) {
                    is_select_time = true;
                    item_time_id = $(this).attr('data-item-id');
                    item_time_title = $(this).attr('data-title');
                }
            });

           if(!$(this).hasClass("itm-oos")){

               if (is_select_time == false) {
                   alert("请选择演出时间");
                   return false;
               }

               item_price_id = $(this).attr('data-item-id');
               item_price_title = $(this).attr('data-title');
               var _that = $(this);
               if ($(this).hasClass("itm-sel")) {
                   $(this).removeClass("itm-sel");
                   $("#cartList .itm .btn-del").each(function () {
                       var data_value = $(this).attr('data-price');
                       if (item_price_id == data_value) {
                           $(this).parent().html('').hide()
                       }
                   });

               } else {


                   $.post("<{$config.weburl}>/ajax_back_end.php", {
                       action: 'stock',
                       pid: pid,
                       item_time_id: item_time_id,
                       item_price_id: item_price_id
                   }, function (ret) {
                       ret = eval('(' + ret + ')');
                       if (ret.status == false) {
                           alert(ret.msg);
                           $("#btnBuyNow").hide();
                           $("#btnReserve").hide();
                           $("#btnEnd").hide();
                           // $("#out_stock").show().attr('href', "<{$config.weburl}>/?m=product&s=shop_stock&id=" + ret.product_id);


                           return false;
                       } else {

                           _that.addClass("itm-sel");
                           $("#btnBuyNow").show();
                           //  $("#out_stock").hide().attr('href', '');
                           addItem(item_time_id, item_price_id, item_time_title, item_price_title);

                       }

                   });


               }

           }

        });

        $("#cartList").on("click", '.btn-del', function () {
            var price = $(this).attr('data-price');
            $(".m-goods #g2 .itm").each(function () {
                var item_id = $(this).attr('data-item-id');
                if (item_id == price) {
                    $(this).removeClass("itm-sel");
                }
            });
            $(this).parent().html('').hide();

        });

        //提交
        $("#btnBuyNow").on('click', function () {
            var order_list = $("#my_order_post").serialize();
            if (order_list == '') {
                alert("请选择演出时间和票价");
                return false;
            }

            $("#my_order_post").submit();
        });

    });

    //预定
    $("#btnReserve").on('click', function () {
        var product = $("#order_reserve").serialize();
        if (product == '') {
            alert("请选择演出时间和票价");
            return false;
        }
        $("#order_reserve").submit();
    });

    //收藏
    $("#collect").click(function () {
        var pid = $(this).attr('data-id');
        var uname = $(this).attr('data-user');

        if (uname == '') {
            window.location.href = "<{$config.weburl}>/login.php";
            return false;
        }
        $.post("<{$config.weburl}>/module/sns/ajax_update.php", {pid: pid, uname: uname}, function (ret) {
            if (ret == 2) {
                alert('收藏成功');
                return false;
            } else if (ret == 1) {
                alert('您已经收藏过了');
                return false;
            }
        });
    });

    function addItem(item_time_id, item_price_id, item_time_title, item_price_title) {
        var html = '<li class="itm" data-value="' + item_time_id + ',' + item_price_id + '">' +
                '<input type="hidden" name="item[]" value="' + item_time_id + ',' + item_price_id + '">' +
                '<span class="txt txt-datetime">' + item_time_title + '</span>' +
                '<span class="txt txt-price" title="' + item_price_title + '">' + item_price_title + '</span>' +
                '<span class="m-nums"><a class="btn btn-low" data-value="' + item_time_id + ',' + item_price_id + '" href="javascript:;">减</a><input class="ipt ipt-num" type="text" name="num[]" value="1"><a class="btn btn-add" data-value="' + item_time_id + ',' + item_price_id + '" href="javascript:;">加</a></span>' +
                '<span class="tips tips-stock"><strong></strong></span>' +
                '<a class="btn btn-del" href="javascript:;" data-price="' + item_price_id + '"><i></i>删除</a>' +
                '</li>';
        //var $itm = $('<li class="itm" data-value="' + item_time_id + ',' + item_price_id + '"><input type="hidden" name="item[]" value="' + item_time_id + ',' + item_price_id + '"/><span class="txt txt-datetime">"' + item_time_title + '"</span><span class="txt txt-price" title="' + item_price_title + '">' + item_price_title + '</span><a class="btn btn-del" href="javascript:;"><i></i>删除</a></li>');
        $("#cartList .tt").show();
        $("#cartList .ct").show();
        $("#cartList ul").append(html);
    }
    $(".select_ticket").on("click", '.btn-add', function () {
        var num = $(this).prev().val();
        var ticket_info = $(this).attr("data-value");
        var _that = $(this);
        if ('' == ticket_info) {
            alert("票品异常");
            return false;
        } else {
            $.post("<{$config.weburl}>/ajax_back_end.php", {action: "un_sku", ticket: ticket_info, num: num, pid: "<{$de.pid}>", type: 1}, function (ret) {
                ret = eval('(' + ret + ')');
                if (!ret.status) {
                    alert(ret.msg);
                    return false;
                } else {
                    _that.prev().val(parseInt(num) + 1);
                }
            });
        }


    });
    $(".select_ticket").on("click", '.btn-low', function () {
        var num = $(this).next().val();
        var ticket_info = $(this).attr("data-value");
        var _that = $(this);

        if ('' == ticket_info) {
            alert("票品异常");
            return false;
        } else {
            $.post("<{$config.weburl}>/ajax_back_end.php", {action: "un_sku", ticket: ticket_info, num: num, pid: "<{$de.pid}>", type: 2}, function (ret) {
                ret = eval('(' + ret + ')');
                if (!ret.status) {
                    alert(ret.msg);
                    return false;
                } else {
                    if (num != 1) {
                        _that.next().val(parseInt(num) - 1);
                    }
                }
            });


        }


    });

    //送花
    $("#send_flowers").on("click", function () {

        var pid = "<{$de.pid}>";
        var uname = $(this).attr('data-user');
        var __that = $(this);
        if (uname == '') {
            window.location.href = "<{$config.weburl}>/login.php";
            return false;
        }
        $.post("<{$config.weburl}>/ajax.php", {action: 'send_flower', pid: pid}, function (ret) {
            ret = eval('(' + ret + ')');
            if (ret.status) {
                __that.addClass('m-flowers-act');
                __that.next().addClass('ico-2');
                __that.find('.txt-flower').html('已送花');
                __that.find('.num-flower').html('1');

            } else {
                alert(ret.msg);
            }

        });

    });

    //缺货
    $(".itm-price").on("click", function () {
        var pid = "<{$de.id}>";

        $("#btnReserve").hide();
        $("#btnBuyNow").hide();
        $("#btnBuyNow").hide();
        //   $("#out_stock").show().attr('href', "<{$config.weburl}>/?m=product&s=shop_stock&id=" + pid);
        window.location.href = "<{$config.weburl}>/?m=product&s=shop_stock&id=" + pid;
    });
    $(".itm-price").hover(
            function () {
                var offset = $(this).index();
                var left_off = 40;
                if (offset == 0) {
                    $(".tips-oos").addClass("z-show").css("left", left_off);
                } else {
                    left_off = parseInt(left_off) + parseInt(offset) * 140;
                    if (left_off >= 560) {
                        left_off = 40;
                        var new_off = offset % 4;
                        if (new_off == 0) {
                            left_off = 40;
                        } else {
                            left_off = parseInt(left_off) + parseInt(new_off) * 140;
                        }
                        if (offset == 4) {
                            $(".tips-oos").addClass("z-show").css("top", 75);
                        } else if (offset == 8) {
                            $(".tips-oos").addClass("z-show").css("top", 110);
                        } else if (offset == 12) {
                            $(".tips-oos").addClass("z-show").css("top", 145);
                        } else if (offset == 16) {
                            $(".tips-oos").addClass("z-show").css("top", 180);
                        }

                        $(".tips-oos").addClass("z-show").css("left", left_off);

                    } else {
                        $(".tips-oos").addClass("z-show").css("top", 40);
                        $(".tips-oos").addClass("z-show").css("left", left_off);
                    }

                }
            },
            function () {
                $(".tips-oos").removeClass("z-show").css("left", "0");
            }
    );

    //在线选座
    $(".choose-seat").on("click", function () {
        var seat_id = $(this).attr('data-seat');
        var product_id = $(this).attr('product-id');
        if (seat_id == '' || product_id == '') {
            alert("选座异常，暂时不能选座");
            return false;
        }
        //
        $.post("<{$config.weburl}>/api/pclogin.php", {seat_id: seat_id, product_id: product_id}, function (ret) {
            ret = eval('(' + ret + ')');
            if (ret.status) {
                $("#seat").html(ret.content);
            } else {
                if (ret.url != undefined) {
                    window.location.href = ret.url;
                } else {
                    alert(ret.msg);
                }
            }
        });
    });


    function lxfEndtime() {

        $(".exe_time").each(function() {
            var lxfday = $(this).attr("lxfday");//用来判断是否显示天数的变量
            //var endtime = new Date($(this).attr("endtime")).getTime();//取结束日期(毫秒值)
            var endtime = $(this).attr("endtime") * 1000;
            var nowtime = new Date().getTime(); //今天的日期(毫秒值)
            var youtime = endtime - nowtime;//还有多久(毫秒值)
            var seconds = youtime / 1000;
            var minutes = Math.floor(seconds / 60);
            var hours = Math.floor(minutes / 60);
            var days = Math.floor(hours / 24);
            var CDay = days;
            var CHour = DD(hours % 24);
            var AHour = DD(hours % 24);
            var CMinute = DD(minutes % 60);
            var CSecond = DD(Math.floor(seconds % 60));//"%"是取余运算，可以理解为60进一后取余数，然后只要余数。
            if (endtime <= nowtime) {
                $(this).html("");//如果结束日期小于当前日期就提示过期啦
                //$("#projectStatusDescn").hide();

               // window.location.reload();
                $(".modue_mill").hide();
                $(".choose_seckill").find("li").removeClass("itm-oos");
                $(".seckill_buy").removeClass("seckill_kill");
            } else {
                $(".choose_seckill").find("li").addClass("itm-oos");
                $(".seckill_buy").addClass("seckill_kill");
                if (days < 1) {
                    $(this).html( '<span class="times">' + AHour + '</span><span class="time_title">时</span>'+ '<span class="times">' + CMinute + '</span><span class="time_title">分</span>' + '<span class="times">' + CSecond + '</span><span class="time_title">秒</span>');   //输出没有天数的数据
                } else {
                    $(this).html( '<span class="times">' + days + '</span><span class="time_title">天</span>'+ '<span class="times">' + CHour + '</span><span class="time_title">时</span>'+ '<span class="times">' + CMinute + '</span><span class="time_title">分</span>' + '<span class="times">' + CSecond + '</span><span class="time_title">秒</span>');   //输出有天数的数据
                }
            }
        });
        setTimeout("lxfEndtime()", 1000);
    }

    function DD(i) {
        if (i < 10) {
            i = '0' + i;
        }
        return i;
    }

    <{if $de.is_skill == 1 && $now_time <= $de.seckill_time }>
    $(function() {
        lxfEndtime();
    });
    <{/if}>


</script>